// AlarmData.h: interface for the AlarmData class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ALARMDATA_H__838C3AA0_0142_418B_8559_06B8A61B2A70__INCLUDED_)
#define AFX_ALARMDATA_H__838C3AA0_0142_418B_8559_06B8A61B2A70__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class AlarmData  
{
public:
	AlarmData();
	virtual ~AlarmData();

  bool IsVoiceAlarmed() const {return m_bVoiceAlarmed;}
  void SetbVoiceAlarmed(bool bVoiceAlarmed) {m_bVoiceAlarmed = bVoiceAlarmed;}

  const CString& GetVoiceAlarmText() const {return m_strVoiceAlarmText;}
  void SetVoiceAlarmText(const CString& strVoiceAlarmText) {m_strVoiceAlarmText = strVoiceAlarmText;}
  const CString& GetDispAlarmText() const {return m_strDispAlarmText;}

  int InsertToListCtrl(CListCtrl& listctrl) const;
  void UpdateInListCtrl(CListCtrl& listctrl, int nItem) const;
  void MakeVoiceAlarmText();
  CString DigitToChinese(const CString& strOriginal);

public:
  long m_nCoalMineId;
  CString m_strId;

protected:
  bool m_bVoiceAlarmed;
  CString m_strDispAlarmText;
  CString m_strVoiceAlarmText;
};

#endif // !defined(AFX_ALARMDATA_H__838C3AA0_0142_418B_8559_06B8A61B2A70__INCLUDED_)
